Part Number Hot Search : 
78D05F GS101 74VCX1 AQY210 1N6040 A1S109 DSP16 1B1103K0
Product Description
Full Text Search
 

To Download 68HC11A0FN Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  order this document by mc68hc11a8ts/d ?motorola inc., 1991, 1996 this document contains information on a new product. speci?ations and information herein are subject to change without notice. motorola semiconductor technical data mc68hc11a8 mc68hc11a1 mc68hc11a0 technical summary 8-bit microcontrollers 1 introduction the mc68hc11a8, mc68hc11a1, and mc68hc11a0 high-performance microcontroller units (mcus) are based on the m68hc11 family. these high speed, low power consumption chips have multiplexed buses and a fully static design. the chips can operate at frequencies from 3 mhz to dc. the three mcus are created from the same masks; the only differences are the value stored in the config register, and whether or not the rom or eeprom is tested and guaranteed. for detailed information about specific characteristics of these mcus, refer to the m68hc11 reference manual (m68hc11rm/ad). 1.1 features ?m68hc11 cpu ?power saving stop and wait modes ?8 kbytes rom ?512 bytes of on-chip eeprom ?256 bytes of on-chip ram (all saved during standby) ?16-bit timer system ?3 input capture channels ?5 output compare channels ?8-bit pulse accumulator ?real-time interrupt circuit ?computer operating properly (cop) watchdog system ?synchronous serial peripheral interface (spi) ?asynchronous nonreturn to zero (nrz) serial communications interface (sci) ?8-channel, 8-bit analog-to-digital (a/d) converter ?38 general-purpose input/output (i/o) pins ?15 bidirectional i/o pins ?11 input-only pins and 12 output-only pins (eight output-only pins in 48-pin package) ?available in 48-pin dual in-line package (dip) or 52-pin plastic leaded chip carrier (plcc)
motorola mc68hc11a8 2 mc68hc11a8ts/d table 1 mc68hc11ax family members device number rom eeprom ram config* comments mc68hc11a8 8k 512 256 $0f family built around this device mc68hc11a1 0 512 256 $0d rom disabled mc68hc11a0 0 0 256 $0c rom and eeprom disabled table 2 ordering information package temperature config description mc order number 48-pin plastic dip (p suffix) ?0 to + 85 c $0f buffalo rom mc68hc11a8p1 ?0 to + 85 c $0d no rom mc68hc11a1p ?0 to + 105 c $0d no rom mc68hc11a1vp ?0 to + 125 c $0d no rom mc68hc11a1mp ?0 to + 85 c $09 no rom, cop on mc68hcp11a1p ?0 to + 105 c $09 no rom, cop on mc68hcp11a1vp ?0 to + 125 c $09 no rom, cop on mc68hcp11a1mp ?0 to + 85 c $0c no rom, no eeprom mc68hc11a0p 52-pin plcc (fn suffix) ?0 to + 85 c $0f buffalo rom mc68hc11a8fn1 ?0 to + 85 c $0d no rom mc68hc11a1fn ?0 to + 105 c $0d no rom mc68hc11a1vfn ?0 to + 125 c $0d no rom mc68hc11a1mfn ?0 to + 85 c $09 no rom, cop on mc68hcp11a1fn ?0 to + 105 c $09 no rom, cop on mc68hcp11a1vfn ?0 to + 125 c $09 no rom, cop on mc68hcp11a1mfn ?0 to + 85 c $0c no rom, no eeprom mc68HC11A0FN
section page mc68hc11a8 motorola mc68hc11a8ts/d 3 1 introduction............................................................................................................................................... 1 1.1 features .......................................................................................................................................... 1 2 operating modes and memory maps ....................................................................................................... 6 2.1 memory maps .................................................................................................................................. 7 3 resets and interrupts ............................................................................................................................. 13 4 electrically erasable programmable read-only memory (eeprom) ................................................... 17 5 parallel input/output............................................................................................................................... 19 6 serial communications interface (sci) .................................................................................................. 23 7 serial peripheral interface (spi)............................................................................................................. 29 8 main timer.............................................................................................................................................. 32 9 pulse accumulator.................................................................................................................................. 38 10 analog-to-digital converter .................................................................................................................. 41 table of contents
motorola mc68hc11a8 4 mc68hc11a8ts/d figure 1 mc68hc11a8 block diagram cop periodic spi sci an0 port e an1 an2 an3 an4 an5 an6 an7 a/d converter mode select power timer system cpu v rl v rh pe0 pe1 pe2 pe3 pe4 pe5 pe6 pe7 pd0 pd1 pd2 pd3 pd4 pd5 port d ddr port d miso mosi sck ss rxd txd modb/ moda/ 512 bytes eeprom interrupt pulse accumulator pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 ic3 ic2 ic1 oc5/oc1 oc4/oc1 oc3/oc1 oc2/oc1 pai/oc1 oscillator interrupt logic pc0 port c ddr pc1 pc2 pc3 pc4 pc5 pc6 pc7 port c port a strb v ss v dd xirq irq reset xtal extal e lir v stby 256 bytes ram 8 kbytes rom pb0 port b pb1 pb2 pb3 pb4 pb5 pb6 pb7 stra address/data bus handshake i/o parallel i/o equivalent to mc68hc24 single chip expanded a0/d0 a1/d1 a2/d2 a3/d3 a4/d4 a5/d5 a6/d6 a7/d7 r/w a8 a9 a10 a11 a12 a13 a14 a15 as
mc68hc11a8 motorola mc68hc11a8ts/d 5 figure 2 52-pin plcc pin assignments 1 9 10 11 12 13 14 15 16 45 44 43 42 41 40 39 38 37 36 17 18 19 20 35 34 46 pc6/a6/d6 pc5/a5/d5 pc4/a4/d4 pc3/a3/d3 pc2/a2/d2 pc1/a1/d1 pc0/a0/d0 xtal reset pc7/a7/d7 xirq irq pd0/rxd pb6/a14 pb7/a15 pa0/ic3 pe5/an5 pe1/an1 pe4/an4 pe0/an0 pb0/a8 pb1/a9 pb2/a10 pb3/a11 pb4/a12 pb5/a13 4 3 2 51 49 50 47 6 5 48 modb/v stby v rh v ss extal stra/as e v rl moda/lir strb/r/w pe6/an6 pe2/an2 pe7/an7 pe3/an3 28 29 30 31 32 33 21 22 23 24 25 26 27 pd1/txd pd5/ss pd2/miso v dd pd4/sck pd3/mosi pa7/pai/oc1 pa2/ic1 pa3/oc5/oc1 pa4/oc4/oc1 pa5/oc3/oc1 pa6/oc2/oc1 pa1/ic2 52 7 8
motorola mc68hc11a8 6 mc68hc11a8ts/d figure 3 48-pin dip pin assignments 2 operating modes and memory maps in single-chip operating mode, the mc68hc11a8 is a monolithic microcontroller without external ad- dress or data buses. in expanded multiplexed operating mode, the mcu can access a 64 kbyte address space. the space includes the same on-chip memory addresses used for single-chip mode plus external peripheral and memory devices. the expansion bus is made up of ports b and c and control signals as and r/w . the address, r/w , and as signals are active and valid for all bus cycles including accesses to internal mem- ory locations. the following figure illustrates a recommended method of demultiplexing low-order ad- dresses from data at port c. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 pa7/pai/oc1 pa6/oc2/oc1 pa5/oc3/oc1 pa4/oc4/oc1 pa3/oc5/oc1 pa2/ic1 pa1/ic2 pa0/ic3 pb7/a15 pb6/a14 pb5/a13 pb4/a12 pb3/a11 pb2/a10 pb1/a9 pb0/a8 pe0/an0 pe1/an1 pe2/an2 pe3/an3 modb/v stby v rl v rh v ss v dd pd5/ss pd4/sck pd3/mosi pd2/miso pd1/txd pd0/rxd irq xirq reset pc7/a7/d7 pc6/a6/d6 pc5/a5/d5 pc4/a4/d4 pc3/a3/d3 pc2/a2/d2 pc1/a1/d1 pc0/a0/d0 xtal extal strb/ r/w e stra/as moda/lir
mc68hc11a8 motorola mc68hc11a8ts/d 7 figure 4 address/data demultiplexing special bootstrap mode allows special purpose programs to be entered into internal ram. the boot- loader program uses the sci to read a 256-byte program into on-chip ram at $0000 through $00ff. after receiving the character for address $00ff, control passes to the loaded program at $0000. special test mode is used primarily for factory testing. 2.1 memory maps memory locations are the same for expanded multiplexed and single-chip modes. the on-board 256- byte ram is initially located at $0000 after reset. the 64-byte register block originates at $1000 after reset. ram and/or the register block can be placed at any other 4k boundary ($x000) after reset by writ- ing an appropriate value to the init register. the 512-byte eeprom is located at $b600 through $b7ff after reset if it is enabled. the 8 kbyte rom is located at $e000 through $ffff if it is enabled. hardware priority is built into the memory remapping. registers have priority over ram, and ram has priority over rom. the higher priority resource covers the lower, making the underlying locations inac- cessible. in special bootstrap mode, a bootloader rom is enabled at locations $bf40 through $bfff. in special test and special bootstrap modes, reset and interrupt vectors are located at $bfc0 through $bfff. pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 pc7 pc6 pc5 pc4 pc3 pc2 pc1 pc0 d1 d2 d3 d4 d5 d6 d7 d8 le q1 q2 q3 q4 q5 q6 q7 q8 oe a7 a6 a5 a4 a3 a2 a1 a0 r/w e we a15 a14 a13 a12 a11 a10 a9 a8 mc54/74hc373 d7 d6 d5 d4 d3 d2 d1 d0 as mc68hc11a8
motorola mc68hc11a8 8 mc68hc11a8ts/d figure 5 memory map ffc0 ffff bfff bfc0 boot rom special mode interrupt vectors 512 bytes eeprom 64 byte register block (can be remapped to any 4k page by the init register) 256 bytes ram (can be remapped to any 4k page by the init register) 8k rom single chip expanded mux special bootstrap special test ext ext ext ext ext ext $0000 $1000 $b600 $e000 $ffff 0000 00ff 1000 103f b600 b7ff bf40 bfff e000 ffff normal mode interrupt vectors
mc68hc11a8 motorola mc68hc11a8ts/d 9 table 3 mc68hc11a8 register and control bit assignments (sheet 1 of 2) (the register block can be remapped to any 4k boundary.) bit 7 654321 bit 0 $1000 pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 porta $1001 reserved $1002 staf stai cwom hnds oin pls ega invb pioc $1003 pc7 pc6 pc5 pc4 pc3 pc2 pc1 pc0 portc $1004 pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 portb $1005 pcl7 pcl6 pcl5 pcl4 pcl3 pcl2 pcl1 pcl0 portcl $1006 reserved $1007 ddc7 ddc6 ddc5 ddc4 ddc3 ddc2 ddc1 ddc0 ddrc $1008 0 0 pd5 pd4 pd3 pd2 pd1 pd0 portd $1009 0 0 ddd5 ddd4 ddd3 ddd2 ddd1 ddd0 ddrd $100a pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 porte $100b foc1 foc2 foc3 foc4 foc5 0 0 0 cforc $100c oc1m7 oc1m6 oc1m5 oc1m4 oc1m3 0 0 0 oc1m $100d oc1d7 oc1d6 oc1d5 oc1d4 oc1d3 0 0 0 oc1d $100e bit 15 14 13 12 11 10 9 bit 8 tcnt (high) $100f bit 7 654321 bit 0 tcnt (low) $1010 bit 15 14 13 12 11 10 9 bit 8 tic1 (high) $1011 bit 7 654321 bit 0 tic1 (low) $1012 bit 15 14 13 12 11 10 9 bit 8 tic2 (high) $1013 bit 7 654321 bit 0 tic2 (low) $1014 bit 15 14 13 12 11 10 9 bit 8 tic3 (high) $1015 bit 7 654321 bit 0 tic3 (low) $1016 bit 15 14 13 12 11 10 9 bit 8 toc1(high) $1017 bit 7 654321 bit 0 toc1 (low) $1018 bit 15 14 13 12 11 10 9 bit 8 toc2 (high) $1019 bit 7 654321 bit 0 toc2 (low) $101a bit 15 14 13 12 11 10 9 bit 8 toc3 (high) $101b bit 7 654321 bit 0 toc3 (low) $101c bit 15 14 13 12 11 10 9 bit 8 toc4 (high) $101d bit 7 654321 bit 0 toc4 (low) $101e bit 15 14 13 12 11 10 9 bit 8 toc5 (high) $101f bit 7 654321 bit 0 toc5 (low) $1020 om2 ol2 om3 ol3 om4 ol4 om5 ol5 tctl1 $1021 0 0 edg1b edg1a edg2b edg2a edg3b edg3a tctl2 $1022 oc1i oc2i oc3i oc4i oc5i ic1i ic2i ic3i tmsk1 $1023 oc1f oc2f oc3f oc4f oc5f ic1f ic2f ic3f tflg1 $1024 toi rtii paovi paii 0 0 pr1 pr0 tmsk2 $1025 tof rtif paovf paif 0000 tflg2
motorola mc68hc11a8 10 mc68hc11a8ts/d $1026 ddra7 paen pamod pedge 0 0 rtr1 rtr0 pactl $1027 bit 7 654321 bit 0 pacnt $1028 spie spe dwom mstr cpol cpha spr1 spr0 spcr $1029 spif wcol 0 modf 0000 spsr $102a bit 7 654321 bit 0 spdr $102b tclr 0 scp1 scp0 rckb scr2 scr1 scr0 baud $102c r8 t8 0 m wake 0 0 0 sccr1 $102d tie tcie rie ilie te re rwu sbk sccr2 $102e tdre tc rdrf idle or nf fe 0 scsr $102f r7/t7 r6/t6 r5/t5 r4/t4 r3/t3 r2/t2 r1/t1 r0/t0 scdr $1030 ccf 0 scan mult cd cc cb ca adctl $1031 bit 7 654321 bit 0 adr1 $1032 bit 7 654321 bit 0 adr2 $1033 bit 7 654321 bit 0 adr3 $1034 bit 7 654321 bit 0 adr4 $1035 reserved $1038 reserved $1039 adpu csel irqe dly cme 0 cr1 cr0 option $103a bit 7 654321 bit 0 coprst $103b odd even 0 byte row erase eelat eepgm pprog $103c rboot smod mda irv psel3 psel2 psel1 psel0 hprio $103d ram3 ram2 ram1 ram0 reg3 reg2 reg1 reg0 init $103e tilop 0 occr cbyp disr fcm fcop tcon test1 $103f 0000 nosec nocop romon eeon config table 3 mc68hc11a8 register and control bit assignments (sheet 2 of 2) (the register block can be remapped to any 4k boundary.) bit 7 654321 bit 0
mc68hc11a8 motorola mc68hc11a8ts/d 11 rboot, smod, and mda reset depend on conditions at reset and can only be written in special modes (smod = 1). rboot ?read bootstrap rom 0 = bootloader rom disabled and not in map 1 = bootloader rom enabled and in map at $bf40?bfff smod ?pecial mode select mda ?mode select a irv ?internal read visibility 0 = no internal read visibility on external bus 1 = data from internal reads is driven out through the external data bus psel3?sel0 ?priority select bits 3 through 0 refer to 3 resets and interrupts . ram[3:0] ?56-byte internal ram map position ram[3:0] determine the upper four bits of the ram address, positioning ram at the selected 4k bound- ary. reg[3:0] ?4-byte register block map position reg[3:0] determine the upper four bits of the register address, positioning registers at the selected 4k boundary. register can be written only once in the first 64 cycles out of reset in normal modes, or any time in special modes. hprio ?highest priority i-bit interrupt and miscellaneous $103c bit 7 654321 bit 0 rboot smod mda irv psel3 psel2 psel1 psel0 reset: 0101 inputs mode latched at reset modb moda rboot smod mda 1 0 single chip 0 0 0 1 1 expanded multiplexed 0 0 1 0 0 special bootstrap 1 1 0 0 1 special test 0 1 1 init ?ram and i/o mapping $103d bit 7 654321 bit 0 ram3 ram2 ram1 ram0 reg3 reg2 reg1 reg0 reset: 00000001
motorola mc68hc11a8 12 mc68hc11a8ts/d test modes only tilop ?test illegal opcode occr ?output condition code register to timer port cbyp ?timer divider chain bypass disr ?disable resets from cop and clock monitor disr is forced to one out of reset in special test and bootstrap modes. fcm ?force clock monitor failure fcop ?force cop watchdog failure tcon ?test configuration register note the bits of this register are implemented with eeprom cells. programming and erasing follow normal eeprom procedures. the erased state of config is $0f. a new value is not readable until after a subsequent reset sequence. config can only be programmed or erased in special modes. nosec ?eeprom security disable refer to 4 electrically erasable programmable read-only memory (eeprom) . nocop ?cop system disable refer to 3 resets and interrupts . romon ?rom enable in single-chip mode, romon is forced to one out of reset. 0 = 8k rom removed from the memory map 1 = 8k rom present in the memory map eeon ?eeprom enable 0 = eeprom is removed from the memory map 1 = eeprom is present in the memory map test1 ?factory test $103e bit 7 654321 bit 0 tilop 0 occr cbyp disr fcm fcop tcon reset: 0000000 config ?cop, rom, eeprom enables $103f bit 7 654321 bit 0 0000 nosec nocop romon eeon reset: 0000
mc68hc11a8 motorola mc68hc11a8ts/d 13 3 resets and interrupts the mc68hc11a8 has three reset vectors and 18 interrupt vectors. the reset vectors are as follows: ?reset , or power-on ? cop clock monitor fail ? cop failure the eight interrupt vectors service 23 interrupt sources (three non-maskable, 20 maskable). the three non-maskable interrupt vectors are as follows: ?illegal opcode trap ? software interrupt ? xirq pin (pseudo non-maskable interrupt) the 20 maskable interrupt sources are subject to masking by a global interrupt mask, the i bit in the condition code register (ccr). in addition to the global i bit, all of these sources except the external interrupt (irq ) pin are controlled by local enable bits in control registers. most interrupt sources in the m68hc11 have separate interrupt vectors. for this reason, there is usually no need for software to poll control registers to determine the cause of an interrupt. the maskable interrupt sources respond to a fixed priority relationship, except that any one source can be dynamically elevated to the highest priority position of any maskable source. refer to the table of interrupt and reset vector assignments. on-chip peripheral systems generate maskable interrupts that are recognized only if the i bit in the ccr is clear. maskable interrupts are prioritized according to a default arrangement, but any one source can be elevated to the highest maskable priority position by the hprio register. the hprio register can be written at any time, provided the i bit in the ccr is set. for some interrupt sources, such as the parallel i/o and sci interrupts, the flags are automatically cleared during the course of responding to the interrupt requests. for example, the rdrf flag in the sci system is cleared by the automatic clearing mechanism, which consists of a read of the sci status register while rdrf is set, followed by a read of the sci data register. the normal response to an rdrf interrupt request is to read the sci status register to check for receive errors, then to read the received data from the sci data register. these two steps satisfy the automatic clearing mechanism without requiring any special instructions. the real-time interrupt (rti) function generates hardware interrupts at a fixed periodic rate. these hard- ware interrupts provide a time reference signal for routines that measure real time. the routine notes the number of times a particular interrupt has occurred and multiplies that number by the predetermined subroutine execution time. there are four rti signal rates available in the mc68hc11a8. the mcu oscillator frequency and the value of two software-accessible control bits, rtr1 and rtr0, in the pulse accumulator control register (pactl) determine these signal rates. refer to 8 main timer for more information about pactl.
motorola mc68hc11a8 14 mc68hc11a8ts/d *can be written only once in first 64 cycles out of reset in normal modes, or any time in special modes. adpu ?/d converter power-up refer to 10 analog-to-digital converter . csel ?lock select refer to 10 analog-to-digital converter . irqe ?irq select edge-sensitive only 0 = low logic level recognition 1 = falling edge recognition table 4 interrupt and reset vector assignments vector address interrupt source ccr mask local mask ffc0, c1 ?ffd4, d5 reserved ffd6, d7 sci serial system i bit sci transmit complete tcie sci transmit data register empty tie sci idle line detect ilie sci receiver overrun rie sci receive data register full rie ffd8, d9 spi serial transfer complete i bit spie ffda, db pulse accumulator input edge i bit paii ffdc, dd pulse accumulator overflow i bit paovi ffde, df timer overflow i bit toi ffe0, e1 timer input capture 4/output compare 5 i bit i4o5i ffe3, e2 timer output compare 4 i bit oc4i ffe4, e5 timer output compare 3 i bit oc3i ffe6, e7 timer output compare 2 i bit oc2i ffe8, e9 timer output compare 1 i bit oc1i ffea, eb timer input capture 3 i bit ic3 ffec, ed timer input capture 2 i bit ic2i ffee, ef timer input capture 1 i bit ic1i fff0, f1 real-time interrupt i bit rtii fff2, f3 parallel i/o handshake i bit stai irq none fff4, f5 xirq pin x bit none fff6, f7 software interrupt none none fff8, f9 illegal opcode trap none none fffa, fb cop failure none nocop fffc, fd cop clock monitor fail none cme fffe, ff reset none none option ?ystem configuration options $1039 bit 7 654321 bit 0 adpu csel irqe* dly* cme 0 cr1* cr0* reset: 00010000
mc68hc11a8 motorola mc68hc11a8ts/d 15 dly ?enable oscillator start-up delay on exit from stop 0 = no stabilization delay on exit from stop 1 = stabilization delay enabled on exit from stop cme ?clock monitor enable 0 = clock monitor disabled; slow clocks can be used 1 = slow or stopped clocks cause clock failure reset cr1, cr0 ?cop timer rate select write $55 to coprst to arm cop watchdog clearing mechanism. write $aa to coprst to reset cop watchdog. rboot ?read bootstrap rom bits 7? refer to 2 operating modes and memory maps . smod ?special mode select refer to 2 operating modes and memory maps . mda ?mode select a refer to 2 operating modes and memory maps . irv ?internal read visibility refer to 2 operating modes and memory maps . psel[3:0] ?priority select bits 3 through 0 can be written only while the i bit in the ccr is set (interrupts disabled). these bits select one interrupt source to be elevated above all other i-bit related sources. cr [1:0] divide e/2 15 by xtal = 4.0 mhz timeout ?/+32.8 ms xtal = 8.0 mhz timeout ?/+16.4 ms xtal = 12.0 mhz timeout ?/+10.9 ms 0 0 1 32.768 ms 16.384 ms 10.923 ms 0 1 4 131.072 ms 65.536 ms 43.691 ms 1 0 16 524.288 ms 262.140 ms 174.76 ms 1 1 64 2.097 sec 1.049 sec 699.05 ms e = 1.0 mhz 2.0 mhz 3.0 mhz coprst ?arm/reset cop timer circuitry $103a bit 7 654321 bit 0 76543210 reset: 00000000 hprio ?highest priority i-bit interrupt and miscellaneous $103c bit 7 654321 bit 0 rboot smod mda irv psel3 psel2 psel1 psel0 reset: 0101
motorola mc68hc11a8 16 mc68hc11a8ts/d note the bits of this register are implemented with eeprom cells. programming and erasing follow normal eeprom procedures. the erased state of config is $0f. a new value is not readable until after a subsequent reset sequence. config can only be programmed or erased in special modes. nosec ?eeprom security disable refer to 4 electrically erasable programmable read-only memory (eeprom) . nocop ?cop system disable 0 = cop enabled (forces reset on timeout) 1 = cop disabled (does not force reset on timeout) romon ?rom enable refer to 2 operating modes and memory maps . eeon ?eeprom enable refer to 2 operating modes and memory maps . psel[3:0] interrupt source promoted 0000 timer overflow 0001 pulse accumulator overflow 0010 pulse accumulator input edge 0011 spi serial transfer complete 0100 sci serial system 0101 reserved (default to irq ) 0110 irq 0111 real-time interrupt 1000 timer input capture 1 1001 timer input capture 2 1010 timer input capture 3 1011 timer output compare 1 1100 timer output compare 2 1101 timer output compare 3 1110 timer output compare 4 1111 timer output compare 5 config ?cop, rom, eeprom enables $103f bit 7 654321 bit 0 0000 nosec nocop romon eeon reset: 0000
mc68hc11a8 motorola mc68hc11a8ts/d 17 4 electrically erasable programmable read-only memory (eeprom) the 512 bytes of eeprom in the mc68hc11a8 are located at $b600 through $b7ff. the eeon bit in config controls the presence or absence of the eeprom in the memory map. when eeon = 1 (erased state), the eeprom is enabled. when eeon = 0, the eeprom is disabled and out of the memory map. eeon is reset to the value last programmed into config. an on-chip charge pump de- velops the high voltage required for programming and erasing. when the e clock is less than 1 mhz, select an internal clock. this drives the eeprom charge pump by writing a one to the csel bit in the option register. the pprog register controls the programming and erasing of the eeprom. to erase the eeprom, complete the following steps using the pprog register: 1. write to pprog with the erase, eelat, and appropriate byte and row bits set. 2. write to the appropriate eeprom address with any data. row erase only requires a write to any location in the row. bulk erase is accomplished by writing to any location in the array. 3. write to pprog with erase, eelat, eepgm, and the appropriate byte and row bits set. 4. delay for 10 ms or more, as appropriate. 5. clear the eepgm bit in pprog to turn off the high voltage. 6. clear the pprog register to reconfigure the eeprom address and data buses for normal op- eration. to program the eeprom, complete the following steps using the pprog register: 1. write to pprog with the eelat bit set. 2. write data to the desired address. 3. write to pprog with the eelat and eepgm bits set. 4. delay for 10 ms or more, as appropriate. 5. clear the eepgm bit in pprog to turn off the high voltage. 6. clear the pprog register to reconfigure the eeprom address and data buses for normal op- eration. odd ?program odd rows in half of eeprom (test) even ?program even rows in half of eeprom (test) byte ?byte/other eeprom erase mode the byte bit overrides the row bit. 0 = row or bulk erase mode is used 1 = erase only one byte of eeprom row ?row/all eeprom erase mode the row bit is only valid when byte = 0. 0 = all 512 bytes of eeprom are erased 1 = erase only one 16-byte row of eeprom pprog ?eeprom programming control $103b bit 7 654321 bit 0 odd even 0 byte row erase eelat eepgm reset: 00000000 byte row action 0 0 bulk erase (all 512 bytes) 0 1 row erase (16 bytes) 1 0 byte erase 1 1 byte erase
motorola mc68hc11a8 18 mc68hc11a8ts/d erase ?erase/normal control for eeprom 0 = normal read or program mode 1 = erase mode eelat ?eeprom latch control 0 = eeprom address and data bus configured for normal reads 1 = eeprom address and data bus configured for programming or erasing eepgm ?eeprom program command 0 = programming or erase voltage switched off to eeprom array 1 = programming or erase voltage switched on to eeprom array note the bits of this register are implemented with eeprom cells. programming and erasing follow normal eeprom procedures. the erased state of config is $0f. a new value is not readable until after a subsequent reset sequence. config can only be programmed or erased in special modes. nosec ? eeprom security disable nosec has no meaning unless the security mask option was specified before the mcu was manufac- tured. 0 = security enabled (available as a mask option on mc68hc11a8 only) 1 = security disabled nocop ?cop system disable refer to 3 resets and interrupts . romon ?rom enable refer to 2 operating modes and memory maps . eeon ?eeprom enable 0 = eeprom is removed from the memory map 1 = eeprom is present in the memory map config ?cop, rom, eeprom enables $103f bit 7 654321 bit 0 0000 nosec nocop romon eeon reset: 0000
mc68hc11a8 motorola mc68hc11a8ts/d 19 5 parallel input/output the mc68hc11a8 has up to 38 input/output lines, depending on the operating mode. port a has three input-only pins, four output-only pins, and one bidirectional i/o pin. port a shares functions with the tim- er system. port b is an 8-bit output-only port in single-chip modes and is the high-order address in expanded modes. port c is an 8-bit bidirectional port in single-chip modes and the multiplexed address and data bus in expanded modes. port d is a 6-bit bidirectional port that shares functions with the serial systems. port e is an 8-bit input-only port that shares functions with the a/d system. simple and full handshake input and output functions are available on ports b and c lines in single-chip mode. a description of the handshake functions follows. in port b simple strobed output mode, the strb output is pulsed for two e-clock periods each time there is a write to the portb register. the invb bit in the pioc register controls the polarity of strb pulses. in port c simple strobed input mode, port c levels are latched into the alternate port c latch (portcl) register on each assertion of the stra input. stra edge select, flag and interrupt enable bits are lo- cated in the pioc register. any or all of the port c lines can still be used as general purpose i/o while in strobed input mode. port c full handshake mode involves port c pins and the stra and strb lines. input and output hand- shake modes are supported, and output handshake mode has a three-stated variation. stra is an edge detecting input, and strb is a handshake output. control and enable bits are located in the pioc register. in full input handshake mode, the mcu uses strb as a ?eady?line to an external system. port c logic levels are latched into portcl when the stra line is asserted by the external system. the mcu then negates strb. the mcu reasserts strb after the portcl register is read. a mix of latched inputs, static inputs, and static outputs is allowed on port c, differentiated by the data direction bits and use of the portc and portcl registers. in full output handshake mode, the mcu writes data to portcl, which in turn asserts the strb output to indicate that data is ready. the external system reads port c (the strb output) and asserts the stra input to acknowledge that data has been received. in the three-state variation of output handshake mode, lines intended as three-state handshake outputs are configured as inputs by clearing the corresponding ddrc bits. the mcu writes data to portcl and asserts strb. the external system responds by activating the stra input, which forces the mcu to drive the data in portcl out on all of the port c lines. this mode variation does not allow part of port c to be used for static inputs while other port c pins are being used for handshake outputs. refer to the pioc register description.
motorola mc68hc11a8 20 mc68hc11a8ts/d staf ?strobe a interrupt status flag set when selected edge occurs on strobe a. cleared by pioc read with staf set followed by portcl read (simple strobed or full input handshake mode) or portcl write (output handshake mode). stai ?strobe a interrupt enable mask 0 = staf interrupts disabled 1 = staf interrupts enabled cwom ?port c wire-or mode (affects all eight port c pins) 0 = port c outputs are normal cmos outputs 1 = port c outputs are open-drain outputs hnds ?handshake mode 0 = simple strobe mode 1 = full input or output handshake mode oin ?output or input handshake select hnds must be set to one for this bit to have meaning. 0 = input handshake 1 = output handshake pls ?pulse/interlocked handshake operation hnds must be set to one for this bit to have meaning. 0 = interlocked handshake 1 = pulsed handshake (strobe b pulses high for two e-clock cycles) ega ?active edge for strobe a 0 = stra falling edge selected 1 = stra rising edge selected invb ?invert strobe b 0 = active level is logic zero 1 = active level is logic one porta ?port a data $1000 bit 7 654321 bit 0 pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 reset: hiz 0000hizhizhiz alt. pin func.: pai oc2 oc3 oc4 oc5 ic1 ic2 ic3 and/or: oc1 oc1 oc1 oc1 oc1 pioc ?parallel i/o control $1002 bit 7 654321 bit 0 staf stai cwom hnds oin pls ega invb reset: 00000u11
mc68hc11a8 motorola mc68hc11a8ts/d 21 note in single chip and boot modes, port c pins reset to high impedance inputs (ddrc registers are set to zero). in expanded and special test modes, port c is a multi- plexed address/data bus and the port c register address is treated as an external memory location. writes affect port c pins. portcl is used in the handshake clearing mechanism. when an active edge occurs on the stra pin, port c data is latched into the portcl register. table 5 parallel i/o control staf clearing sequence hnds oin pls ega port c port b simple strobed mode read pioc with staf=1 then read portcl 0 x x inputs latched into portcl on any active edge on stra strb pulses on writes to port b full input handshake read pioc with staf=1 then read portcl 1 0 0 = strb active level 1 = strb active pulse inputs latched into portcl on any active edge on stra normal out- put port, unaffected in hand- shake modes full output handshake read pioc with staf=1 then write to portcl 1 1 0 = strb active level 1 = strb active pulse driven as out- puts if stra at active level, follows ddrc if stra not at active level normal out- put port, unaffected in hand- shake modes portc ?port c data $1003 bit 7 654321 bit 0 pc7 pc6 pc5 pc4 pc3 pc2 pc1 pc0 s. chip or boot: pc7 pc6 pc5 pc4 pc3 pc2 pc1 pc0 reset: 00000000 expan. or test: addr7/ data7 addr6/ data6 addr5/ data5 addr4/ data4 addr3/ data3 addr2/ data2 addr1/ data1 addr0/ data0 portb ?port b data $1004 bit 7 654321 bit 0 pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 s. chip or boot: pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 reset: 00000000 expan. or test: addr15 addr14 addr13 addr12 addr11 addr10 addr9 addr8 portcl ?port c latched $1005 bit 7 654321 bit 0 pcl7 pcl6 pcl5 pcl4 pcl3 pcl2 pcl1 pcl0 reset: uuuuuuuu 1 0 0 1 0 1 port c driven stra active edge follow ddrc follow ddrc
motorola mc68hc11a8 22 mc68hc11a8ts/d ddc[7:0] ?data direction register for port c 0 = input 1 = output ddd[5:0] ?data direction for port d 0 = input 1 = output ddra7 ?data direction for port a bit 7 0 = input 1 = output paen ?pulse accumulator system enable refer to 9 pulse accumulator . pamod ?pulse accumulator mode refer to 9 pulse accumulator . pedge ?pulse accumulator edge control refer to 9 pulse accumulator . rtr1, rtr0 ?real-time interrupt rate refer to 8 main timer . ddrc ?data direction register for port c $1007 bit 7 654321 bit 0 ddc7 ddc6 ddc5 ddc4 ddc3 ddc2 ddc1 ddc0 reset: 00000000 portd ?port d data $1008 bit 7 654321 bit 0 0 0 pd5 pd4 pd3 pd2 pd1 pd0 reset: 00000000 alt. pin func.: ss sck mosi miso txd rxd ddrd ?data direction register for port d $1009 bit 7 654321 bit 0 0 0 ddd5 ddd4 ddd3 ddd2 ddd1 ddd0 reset: 00000000 alt. pin func.: pd5/ ss pd4/ sck pd3/ mosi pd2/ miso pd1/ txd pd0/ rxd porte ?port e data $100a bit 7 654321 bit 0 pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 reset: uuuuuuuu alt. pin func.: an7 an6 an5 an4 an3 an2 an1 an0 pactl ?pulse accumulator control $1026 bit 7 654321 bit 0 ddra7 paen pamod pedge 0 0 rtr1 rtr0 reset: 00000000
mc68hc11a8 motorola mc68hc11a8ts/d 23 6 serial communications interface (sci) the sci, a universal asynchronous receiver transmitter (uart) serial communications interface, is one of two independent serial i/o subsystems in the mc68hc11a8. it has a standard nrz format (one start, eight or nine data, and one stop bit) and several baud rates available. the sci transmitter and receiver are independent, but use the same data format and bit rate. figure 6 sci transmitter block diagram 11 sci tx block fe nf or idle rdrf tc tdre scsr interrupt status sbk rwu re te ilie rie tcie tie sccr2 sci control 2 transmitter control logic tcie tc tie tdre sci rx requests sci interrupt request internal data bus pin buffer and control h(8)76543210l 10 (11) - bit tx shift register ddd1 pd1 txd scdr tx buffer transfer tx buffer shift enable jam enable preamble?am 1s break?am 0s (write only) force pin direction (out) size 8/9 wake m t8 r8 sccr1 sci control 1 transmitter baud rate clock 8 8 8
motorola mc68hc11a8 24 mc68hc11a8ts/d figure 7 sci receiver block diagram 11 sci rx block fe nf or idle rdrf tc tdre scsr sci status 1 sbk rwu re te ilie rie tcie tie sccr2 sci control 2 wake m t8 r8 wakeup logic rie or ilie idle sci tx requests sci interrupt request internal data bus pin buffer and control ddd0 pd0 rxd scdr rx buffer stop (8)76543210 10 (11) - bit rx shift register (read only) sccr1 sci control 1 rie rdrf start msb all ones data recovery ? 16 rwu re m disable driver receiver baud rate clock 8 8 8
mc68hc11a8 motorola mc68hc11a8ts/d 25 tclr ?clear baud rate counters (test) scp1, scp0 ?sci baud rate prescaler selects rckb ?sci baud rate clock check (test) scr2, scr1, and scr0 ?sci baud rate selects selects receiver and transmitter bit rate based on output from baud rate prescaler stage. baud ?baud rate $102b bit 7 654321 bit 0 tclr 0 scp1 scp0 rckb scr2 scr1 scr0 reset: 00000uuu scp[1:0] divide internal clock by crystal frequency in mhz 4.0 mhz (baud) 8.0 mhz (baud) 10.0 mhz (baud) 12.0 mhz (baud) 00 1 62.50k 125.0k 156.25k 187.5k 01 3 20.83k 41.67k 52.08k 62.5k 10 4 15.625k 31.25k 38.4k 46.88k 11 13 4800 9600 12.02k 14.42k scp[2:0] divide prescaler by highest baud rate (prescaler output from previous table) 4800 9600 38.4k 000 1 4800 9600 38.4k 001 2 2400 4800 19.2k 010 4 1200 2400 9600 011 8 600 1200 4800 100 16 300 600 2400 101 32 150 300 1200 110 64 150 600 111 128 300
motorola mc68hc11a8 26 mc68hc11a8ts/d figure 8 sci baud rate diagram r8 ?receive data bit 8 if m bit is set, r8 stores ninth bit in receive data character. t8 ?transmit data bit 8 if m bit is set, t8 stores ninth bit in transmit data character. m ?mode (select character format) 0 = start bit, 8 data bits, 1 stop bit 1 = start bit, 9 data bits, 1 stop bit sccr1 ?sci control register 1 $102c bit 7 654321 bit 0 r8 t8 0 m wake 0 0 0 reset: u u 000000 sci baud generator ? 3 ? 4 ? 13 oscillator and clock generator ( ? 4) xtal extal e as internal bus clock (ph2) 1:1 scp[1:0] 1:0 0:1 0:0 ? 2 0:0:0 ? 2 0:0:1 ? 2 0:1:0 ? 2 0:1:1 ? 2 1:0:0 ? 2 1:0:1 ? 2 1:1:0 1:1:1 ? 16 sci receive baud rate (16x) scr[2:0] sci transmit baud rate (1x)
mc68hc11a8 motorola mc68hc11a8ts/d 27 wake ?wake up by address mark/idle 0 = wake up by idle line recognition 1 = wake up by address mark (most significant data bit set) tie ?transmit interrupt enable 0 = tdre interrupts disabled 1 = sci interrupt requested when tdre status flag is set tcie ?transmit complete interrupt enable 0 = tc interrupts disabled 1 = sci interrupt requested if tc is set to one rie ?receiver interrupt enable 0 = rdrf and or interrupts disabled 1 = sci interrupt requested when rdrf flag or the or status flag is set ilie ?idle line interrupt enable 0 = idle interrupts disabled 1 = sci interrupt requested when idle status flag is set te ?transmitter enable 0 = transmitter disabled 1 = transmitter enabled re ?receiver enable 0 = receiver disabled 1 = receiver enabled rwu ?receiver wake up control 0 = normal sci receiver 1 = wake up enabled and receiver interrupts inhibited sbk ?send break 0 = break generator off 1 = break codes generated as long as sbk is set to one tdre ?transmit data register empty flag set if transmit data can be written to scdr; if tdre is zero, transmit data register is busy. cleared by scsr read with tdre set followed by scdr write. tc ?transmit complete flag set if transmitter is idle (no data, preamble, or break transmission in progress). cleared by scsr read with tc set followed by scdr write. sccr2 ?sci control register 2 $102d bit 7 654321 bit 0 tie tcie rie ilie te re rwu sbk reset: 00000000 scsr ?sci status register $102e bit 7 654321 bit 0 tdre tc rdrf idle or nf fe 0 reset: 11000000
motorola mc68hc11a8 28 mc68hc11a8ts/d rdrf ?receive data register full flag set if a received character is ready to be read from scdr. cleared by scsr read with rdrf set fol- lowed by scdr read. idle ?idle line detected flag set if the rxd line is idle. idle flag is inhibited when rwu is set to one. cleared by scsr read with idle set followed by scdr read. once cleared, idle is not set again until the rxd line has been active and becomes idle again. or ?overrun error flag set if a new character is received before a previously received character is read from scdr. cleared by scsr read with or set followed by scdr read. nf ?noise error flag set if majority sample logic detects anything other than a unanimous decision. cleared by scsr read with nf set followed by scdr read. fe ?framing error set if a zero is detected where a stop bit was expected. cleared by scsr read with fe set followed by scdr read. note receive and transmit are double buffered. reads access the receive data buffer and writes access the transmit data buffer. scdr ?sci data register $102f bit 7 654321 bit 0 r7/t7 r6/t6 r5/t5 r4/t4 r3/t3 r2/t2 r1/t1 r0/t0 reset: uuuuuuuu
mc68hc11a8 motorola mc68hc11a8ts/d 29 7 serial peripheral interface (spi) the spi is one of two independent serial communications subsystems that allow the mcu to commu- nicate synchronously with peripheral devices and other microprocessors. data rates can be as high as one half of the e-clock rate when configured as master, and as fast as the e clock when configured as slave. figure 9 spi block diagram ddrd ?data direction register for port d $1009 bit 7 654321 bit 0 0 0 ddd5 ddd4 ddd3 ddd2 ddd1 ddd0 reset: 00000000 alt. pin func.: __ __ pd5/ ss pd4/ sck pd3/ mosi pd2/ miso pd1/ txd pd0/ rxd 11 spi block spr0 spr1 cpha cpol mstr dwom spe spie spi control register modf wcol spif spi status register 8/16-bit shift register read data buffer msb lsb internal data bus spi interrupt request mstr spe mstr dwom spe spr0 spi clock (master) spi control select divider internal mcu clock clock logic clock pin control logic s m s m m s miso pd2 mosi pd3 sck pd4 ss pd5 spr1 ? 2 ? 4 ? 16 ? 32 8 8 8
motorola mc68hc11a8 30 mc68hc11a8ts/d ddd[5:0] ?data direction for port d when ddrd bit 5 is zero and mstr = 1 in spcr, pd5/ss is a general-purpose output and mode fault logic is disabled. 0 = input 1 = output spie ?serial peripheral interrupt enable 0 = spi interrupts disabled 1 = spi interrupts enabled spe ?serial peripheral system enable 0 = spi off 1 = spi on dwom ?port d wired-or mode dwom affects all six port d pins. 0 = normal cmos outputs 1 = open-drain outputs mstr ?master mode select 0 = slave mode 1 = master mode cpol, cpha ?clock polarity, clock phase refer to figure 10 figure 10 spi transfer format spcr ?serial peripheral control register $1028 bit 7 654321 bit 0 spie spe dwom mstr cpol cpha spr1 spr0 reset: 000001uu spi transfer format 1 2345678 1 sck (cpol = 1) sck (cpol = 0) sck cycle # ss (to slave) 654321 lsb msb msb654321lsb 1 2 3 5 4 slave cpha=1 transfer in progress master transfer in progress slave cpha=0 transfer in progress 1. ss asserted 2. master writes to spdr 3. first sck edge 4. spif set 5. ss negated sample input data out (cpha = 0) sample input data out (cpha = 1)
mc68hc11a8 motorola mc68hc11a8ts/d 31 spr1 and spr0 ?spi clock rate selects spif ?spi transfer complete flag set when an spi transfer is complete. cleared by reading spsr with spif set followed by spdr ac- cess. wcol ?write collision set when spdr is written while transfer is in progress. cleared by spsr with wcol set followed by spdr access. modf ?mode fault (a mode fault terminates spi operation) set when ss is pulled low while mstr = 1. cleared by spsr read with modf set followed by spcr write. note spi is double buffered in, single buffered out. spr [1:0] e-clock divide by frequency at e = 2 mhz (baud) 00 2 1.0 mhz 01 4 500 khz 10 16 125 khz 11 32 62.5 khz spsr ?serial peripheral status register $1029 bit 7 654321 bit 0 spif wcol 0 modf 0000 reset: 00000000 spdr ?spi data register $102a bit 7 654321 bit 0 bit 7 654321 bit 0
motorola mc68hc11a8 32 mc68hc11a8ts/d 8 main timer the main timer is based on a free-running 16-bit counter with a four-stage programmable prescaler. a timer overflow function allows software to extend the system's timing capability beyond the counter's 16-bit range. the timer has three channels of input capture and five channels of output compare. refer to the following table for a summary of crystal-related frequencies and periods. table 6 timer summary control bits xtal frequencies 4.0 mhz 8.0 mhz 12.0 mhz other rates 1.0 mhz 2.0 mhz 3.0 mhz (e) 1000 ns 500 ns 333 ns (1/e) pr[1:0] main timer count rates 0 0 1 count overflow 1.0 m s 65.536 ms 500 ns 32.768 ms 333 ns 21.845 ms (e/1) (e/2 16 ) 0 1 1 count overflow 4.0 m s 262.14 ms 2.0 m s 131.07 ms 1.333 m s 87.381 ms (e/4) (e/2 18 ) 1 0 1 count overflow 8.0 m s 524.29 ms 4.0 m s 262.14 ms 2.667 m s 174.76 ms (e/8) (e/2 19 ) 1 1 1 count overflow 16.0 m s 1.049 s 8.0 m s 524.29 ms 5.333 m s 349.52 ms (e/16) (e/2 20 ) rtr[1:0] periodic (rti) interrupt rates 0 0 0 1 1 0 1 1 8.192 ms 16.384 ms 32.768 ms 65.536 ms 4.096 ms 8.192 ms 16.384 ms 32.768 ms 2.731 ms 5.461 ms 10.923 ms 21.845 ms (e/2 13 ) (e/2 14 ) (e/2 15 ) (e/2 16 )
mc68hc11a8 motorola mc68hc11a8ts/d 33 figure 11 main timer note: port a pin actions are controlled by oc1m, oc1d, pactl, tctl1, and tctl2 registers. capture compare block mcu e clk 16-bit latch clk pa0/ic3 4 3 5 6 7 8 2 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 port a pin control oc1i oc2i oc3i oc4i i4/o5i ic1i ic2i ic3i tflg 1 status flags foc1 foc2 foc3 foc4 foc5 oc1f oc2f oc3f oc4f i4/o5f ic1f ic2f ic3f pa1/ic2 pa2/ic1 pa3/oc5/ ic4/oc1 pa4/oc4/ oc1 pa5/oc3/ oc1 pa6/oc2/ oc1 pa7/oc1/ pai i4/o5 16-bit comparator = toc1 (hi) toc1 (lo) 16-bit comparator = toc2 (hi) toc2 (lo) 16-bit comparator = toc3 (hi) toc3 (lo) 16-bit comparator = toc4 (hi) toc4 (lo) 16-bit latch tic1 (hi) tic1 (lo) clk 16-bit latch tic2 (hi) tic2 (lo) clk 16-bit latch tic3 (hi) tic3 (lo) clk 16-bit comparator = ti4/o5 (hi) ti4/o5 (lo) 16-bit free running counter tcnt (hi) tcnt (lo) 9 toi tof interrupt requests (further qualified by i bit in ccr) taps for rti, cop watchdog, and pulse accumulator prescaler divide by 1, 4, 8, or 16 pr1 pr0 16-bit timer bus oc5 ic4 to pulse accumulator tmsk 1 interrupt enables cforc force output compare pin functions
motorola mc68hc11a8 34 mc68hc11a8ts/d foc5?oc1 ?write ones to force compare(s) 0 = not affected 1 = output compare x action occurs, but ocxf flag bit not set set bit(s) to enable oc1 to control corresponding pin(s) of port a. if oc1mx is set, data in oc1dx is output to port a bit x on successful oc1 compares. tcnt resets to $0000. in normal modes, tcnt is read-only. ticx not affected by reset. cforc ?timer compare force $100b bit 7 654321 bit 0 foc1 foc2 foc3 foc4 foc5 0 0 0 reset: 00000000 oc1m ?output compare 1 mask $100c bit 7 654321 bit 0 oc1m7 oc1m6 oc1m5 oc1m4 oc1m3 0 0 0 reset: 00000000 oc1d ?output compare 1 data $100d bit 7 654321 bit 0 oc1d7 oc1d6 oc1d5 oc1d4 oc1d3 0 0 0 reset: 00000000 tcnt ?timer counter $100e, $100f $ 1 00e bit 15 14 13 12 11 10 9 bit 8 high tcnt bit 7 654321 bit 0 low tic1?ic3 ?timer input capture $1010?1015 $ 1 010 bit 15 14 13 12 11 10 9 bit 8 high tic1 $ 1 011 bit 7 654321 bit 0 low $ 1 012 bit 15 14 13 12 11 10 9 bit 8 high tic2 $ 1 013 bit 7 654321 bit 0 low $ 1 014 bit 15 14 13 12 11 10 9 bit 8 high tic3 $ 1 015 bit 7 654321 bit 0 low
mc68hc11a8 motorola mc68hc11a8ts/d 35 all tocx register pairs reset to ones ($ffff). om2?m5 ?output mode ol2?l5 ?output level toc1?oc5 ?timer output compare $1016?101f $ 1 016 bit 15 14 13 12 11 10 9 bit 8 high toc1 $ 1 017 bit 7 654321 bit 0 low $ 1 018 bit 15 14 13 12 11 10 9 bit 8 high toc2 $ 1 019 bit 7 654321 bit 0 low $ 1 01a bit 15 14 13 12 11 10 9 bit 8 high toc3 $ 1 01b bit 7 654321 bit 0 low $ 1 01c bit 15 14 13 12 11 10 9 bit 8 high toc4 $ 1 01d bit 7 654321 bit 0 low $ 1 01e bit 15 14 13 12 11 10 9 bit 8 high toc5 $ 1 01f bit 7 654321 bit 0 low tctl1 ?timer control 1 $1020 bit 7 654321 bit 0 om2 ol2 om3 ol3 om4 ol4 om5 ol5 reset: 00000000 omx olx action taken on successful compare 0 0 timer disconnected from output pin logic 0 1 toggle ocx output line 1 0 clear ocx output line to 0 1 1 set ocx output line to 1 tctl2 ?timer control 2 $1021 bit 7 654321 bit 0 edg1b edg1a edg2b edg2a edg3b edg3a reset: 00000000 table 7 timer control configuration edgxb edgxa configuration 0 0 capture disabled 0 1 capture on rising edges only 1 0 capture on falling edges only 1 1 capture on any edge
motorola mc68hc11a8 36 mc68hc11a8ts/d oc1i?c5i ?output compare x interrupt enable if the ocxi enable bit is set when the ocxf flag bit is set, a hardware interrupt sequence is requested. ic1i?c3i ?input capture x interrupt enable if the icxi enable bit is set when the icxf flag bit is set, a hardware interrupt sequence is requested. note bits in tmsk1 correspond bit for bit with flag bits in tflg1. ones in tmsk1 enable the corresponding interrupt sources. clear flags by writing a one to the corresponding bit position(s). oc1f?c5f ?output compare x flag set each time the counter matches output compare x value. ic1f?c3f ?input capture x flag set each time a selected active edge is detected on the icx input line. toi ?timer overflow interrupt enable 0 = tof interrupts disabled 1 = interrupt requested when tof is set to one rtii ?real-time interrupt enable 0 = rtif interrupts disabled 1 = interrupt requested when rtif is set to one paovi ?pulse accumulator overflow interrupt enable refer to 9 pulse accumulator . paii ?pulse accumulator input edge interrupt enable refer to 9 pulse accumulator . note bits in tmsk2 correspond bit for bit with flag bits in tflg2. ones in tmsk2 enable the corresponding interrupt sources. pr1 and pr0 ?timer prescaler select in normal modes, pr1 and pr0 can only be written once, and the write must be within 64 cycles after reset. refer to table 6 for specific timing values. tmsk1 ?timer interrupt mask 1 $1022 bit 7 654321 bit 0 oc1i oc2i oc3i oc4i oc5i ic1i ic2i ic3i reset: 00000000 tflg1 ?timer interrupt flag 1 $1023 bit 7 654321 bit 0 oc1f oc2f oc3f oc4f oc5f ic1f ic2f ic3f reset: 00000000 tmsk2 ?timer interrupt mask 2 $1024 bit 7 654321 bit 0 toi rtii paovi paii 0 0 pr1 pr0 reset: 00000000
mc68hc11a8 motorola mc68hc11a8ts/d 37 clear flags by writing a one to the corresponding bit position(s). tof ?timer overflow flag set when tcnt changes from $ffff to $0000. rtif ?real-time (periodic) interrupt flag set periodically. refer to rtr[1:0] bits in pactl register. paovf ?pulse accumulator overflow interrupt flag refer to 9 pulse accumulator . paif ?pulse accumulator input edge interrupt flag refer to 9 pulse accumulator . ddra7 ?data direction for port a bit 7 refer to 5 parallel input/output . paen ?pulse accumulator enable refer to 9 pulse accumulator . pamod ?pulse accumulator mode select refer to 9 pulse accumulator . pedge ?pulse accumulator edge select refer to 9 pulse accumulator . rtr [1:0] ?real-time interrupt (rti) rate pr[1:0] prescaler 0 0 1 0 1 4 1 0 8 1 1 16 tflg2 ?timer interrupt flag 2 $1025 bit 7 654321 bit 0 tof rtif paovf paif 0000 reset: 00000000 pactl ?pulse accumulator control $1026 bit 7 654321 bit 0 ddra7 paen pamod pedge 0 0 rtr1 rtr0 reset: 00000000 table 8 real-time interrupt rates rtr[1:0] divide e by xtal = 4.0 mhz xtal = 8.0 mhz xtal = 12.0 mhz 0 0 2 13 8.19 ms 4.096 ms 2.731 ms 0 1 2 14 16.38 ms 8.192 ms 5.461 ms 1 0 2 15 32.77 ms 16.384 ms 10.923 ms 1 1 2 16 65.54 ms 32.768 ms 21.845 ms e = 1.0 mhz 2.0 mhz 3.0 mhz
motorola mc68hc11a8 38 mc68hc11a8ts/d 9 pulse accumulator the mc68hc11a8 has an 8-bit counter that can be configured to operate as a simple event counter or for gated time accumulation, depending on the pamod bit in the pactl register. the pulse accumu- lator counter can be read or written at any time. the port a bit 7 i/o pin can be configured as a clock in event counting mode, or as a gate signal to en- able a free-running clock (e divided by 64) in gated time accumulation mode. figure 12 pulse accumulator system block diagram table 9 pulse accumulator timing common xtal frequencies selected crystal 4.0 mhz 8.0 mhz 12.0 mhz cpu clock (e) 1.0 mhz 2.0 mhz 3.0 mhz cycle time (1/e) 1000 ns 500 ns 333 ns pulse accumulator (in gated mode) (e/2 6 ) (e/2 14 ) 1 count overflow 64.0 m s 16.384 ms 32.0 m s 8.192 ms 21.33 m s 5.461 ms pulse acc block pedge pamod paen pactl control internal data bus pacnt 8-bit counter pa7/ pai/ oc1 interrupt requests paif paovf tflg2 interrupt status paovi paii paovf paovi paif paii tmsk2 int enables 1 2 overflow enable disable flag setting clock pai edge paen paen 2 : 1 mux output buffer input buffer and edge detector from main timer oc1 data bus mcu pin e ? 64 clock (from main timer) from ddra7
mc68hc11a8 motorola mc68hc11a8ts/d 39 toi ?timer overflow interrupt enable refer to 8 main timer . rtii ?real-time interrupt enable refer to 8 main timer . paovi ?pulse accumulator overflow interrupt enable 0 = paovf interrupts disabled 1 = interrupt requested when rtif is set to one paii ?pulse accumulator input edge interrupt enable 0 = paif interrupts disabled 1 = interrupt requested when paif is set to one pr1, pr0 ?timer prescaler select refer to 8 main timer . note bits in tmsk2 correspond bit for bit with flag bits in tflg2. ones in tmsk2 enable the corresponding interrupt sources. clear flags by writing a one to the corresponding bit position(s). tof ?timer overflow flag refer to 8 main timer . rtif ?real-time interrupt flag refer to 8 main timer . paovf ?pulse accumulator overflow flag set when pacnt changes from $ff to $00. paif ?pulse accumulator input edge flag set each time a selected active edge is detected on the pai input line. ddra7 ?data direction for port a bit 7 refer to 5 parallel input/output . tmsk2 ?timer interrupt mask 2 $1024 bit 7 654321 bit 0 toi rtii paovi paii 0 0 pr1 pr0 reset: 00000000 tflg2 ?timer interrupt flag 2 $1025 bit 7 654321 bit 0 tof rtif paovf paif 0000 reset: 00000000 pactl ?pulse accumulator control $1026 bit 7 654321 bit 0 ddra7 paen pamod pedge 0 0 rtr1 rtr0 reset: 00000000
motorola mc68hc11a8 40 mc68hc11a8ts/d paen ?pulse accumulator system enable 0 = pulse accumulator disabled 1 = pulse accumulator enabled pamod ?pulse accumulator mode 0 = event counter 1 = gated time accumulation pedge ?pulse accumulator edge control rtr1 and rtr0 ?real-time interrupt (rti) rate refer to 8 main timer . can be read and written. pamod pedge action on clock 0 0 pai falling edge increments the counter 0 1 pai rising edge increments the counter 1 0 a zero on pai inhibits counting 1 1 a one on pai inhibits counting pacnt ?pulse accumulator counter $1027 bit 7 654321 bit 0 bit 7 654321 bit 0 reset: 00000000
mc68hc11a8 motorola mc68hc11a8ts/d 41 10 analog-to-digital converter the a/d converter system uses an all capacitive charge redistribution technique to convert analog sig- nals to digital values. the mc68hc11a8 a/d system is an 8-channel, 8-bit, multiplexed-input, succes- sive-approximation converter and is accurate to 1 least significant bit (lsb). it does not require external sample and hold circuits because of the type of charge redistribution technique used. dedicated lines v rh and v rl provide the reference supply voltage inputs. refer to the a/d converter block diagram. a multiplexer allows the single a/d converter to select one of 16 analog signals, as shown in the adctl register description. figure 13 a/d converter block diagram ea9 a/d block pe0 an0 pe1 an1 pe2 an2 pe3 an3 pe4 an4 pe5 an5 pe6 an6 pe7 an7 analog mux 8-bit capacitive dac with sample and hold successive approximation register and control adctl a/d control cb cc cd mult scan ccf ca adr1 a/d result 1 adr2 a/d result 2 adr3 a/d result 3 adr4 a/d result 4 result register interface result internal data bus v rh v rl
motorola mc68hc11a8 42 mc68hc11a8ts/d figure 14 a/d conversion sequence figure 15 electrical model of an analog input pin (sample mode) ccf ?conversions complete flag set after an a/d conversion cycle. cleared when adctl is written. scan ?continuous scan control 0 = do four conversions and stop 1 = convert four channels in selected group continuously mult ?multiple channel/single channel control 0 = convert single channel selected 1 = convert four channels in selected group adctl ?a/d control/status $1030 bit 7 654321 bit 0 ccf 0 scan mult cd cc cb ca reset: u 0 uuuuuu 0 32 64 96 128 ?e cycles sample analog input successive approximation sequence msb 4 cycles bit 6 2 cyc bit 5 2 cyc bit 4 2 cyc bit 3 2 cyc bit 2 2 cyc bit 1 2 cyc lsb 2 cyc 2 cyc end repeat sequence, scan = 1 set cc flag convert first channel, update adr1 convert second channel, update adr2 convert third channel, update adr3 convert fourth channel, update adr4 12 e cycles write to adctl e clock a/d conversion tim diffusion/poly < 2 pf coupler 400 na junction leakage + ~20v ?~0.7v * * this analog switch is closed only during the 12-cycle sample time. v rl input + ~12v ?~0.7v protection device 4 k w dummy n-channel output device analog input pin ~ 20 pf dac capacitance analog input pin
mc68hc11a8 motorola mc68hc11a8ts/d 43 cd?a ?channel select d through a * not available in 48-pin package **used for factory testing (1) % of v rh ? rl (2) v rl = 0.0 v; v rh = 5.0 v *can be written only once in first 64 cycles out of reset in normal modes, or any time in special modes. adpu ?a/d power up 0 = a/d converter powered down 1 = a/d converter powered up csel ? clock select 0 = a/d and eeprom use system e clock 1 = a/d and eeprom use internal rc clock table 10 a/d converter channel assignments channel select control bits channel result in adrx if cd cc cb ca signal mult = 1 0 0 0 0 an0 adr1 0 0 0 1 an1 adr2 0 0 1 0 an2 adr3 0 0 1 1 an3 adr4 0 1 0 0 an4* adr1 0 1 0 1 an5* adr2 0 1 1 0 an6* adr3 0 1 1 1 an7* adr4 1 0 x x reserved adr1?dr4 1 100v rh ** adr1 1 101v rl ** adr2 1 110(v rh )/2** adr3 1 1 1 1 reserved** adr4 adr1?dr4 ?a/d results $1031?1034 bit 7 654321 bit 0 $ 1 031 bit 7 654321 bit 0 adr1 $ 1 032 bit 7 654321 bit 0 adr2 $ 1 033 bit 7 654321 bit 0 adr3 $ 1 034 bit 7 654321 bit 0 adr4 table 11 analog input to 8-bit result translation table bit 7 654321 bit 0 % (1) 50% 25% 12.5% 6.25% 3.12% 1.56% 0.78% 0.39% volts (2) 2.500 1.250 0.625 0.3125 0.1562 0.0781 0.0391 0.0195 option ?system configuration options $1039 bit 7 654321 bit 0 adpu csel irqe* dly* cme 0 cr1* cr0* reset: 00010000
motorola mc68hc11a8 44 mc68hc11a8ts/d irqe ?irq select edge sensitive only refer to 3 resets and interrupts . dly ?enable oscillator start-up delay on exit from stop refer to 3 resets and interrupts . cme ?clock monitor enable refer to 3 resets and interrupts . cr1, cr0 ?cop timer rate select refer to 3 resets and interrupts .
motorola reserves the right to make changes without further notice to any products herein. motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. ?ypical?parameters can and do vary in different applications. all operating parameters, including ?ypicals?must be validated for each customer application by customer? technical experts. motorola does not convey any license under its patent rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the motorola product could create a situation where personal injury or death may occur. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer shall indemnify and hold motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part. motorola and b are registered trademarks of motorola, inc. motorola, inc. is an equal opportunity/affirmative action employer. how to reach us: usa/europe: motorola literature distribution; p.o. box 20912; phoenix, arizona 85036. 1-800-441-2447 mfax: rmfax0@email.sps.mot.com - touchtone (602) 244-6609 internet: http://design-net.com japan: nippon motorola ltd.; tatsumi-spd-jldc, toshikatsu otsuki, 6f seibu-butsuryu-center, 3-14-2 tatsumi koto-ku, tokyo 135, japan. 03-3521-8315 hong kong: motorola semiconductors h.k. ltd.; 8b tai ping industrial park, 51 ting kok road, tai po, n.t., hong kong. 852-26629298 m mc68hc11a8ts/d


▲Up To Search▲   

 
Price & Availability of 68HC11A0FN

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X